<template>
	<!-- 三进的个人卡片 -->
	<view class="card-wrapper"
		  v-bind:class="[finishedCheck ? 'finished':'unfinished']"
		  @click="to_sub_sub_page()"
		  >
		<u-row>
			<u-col :span="11">
				<view class="my-sub-title">
					{{info.adminName}}
				</view>
			</u-col>
			
			<u-col :span="1">
				<u-icon name="arrow-right"></u-icon>
			</u-col>
		</u-row>
	</view>
</template>

<script>
	export default {
		name:"mentor-card",
		
		props: {
			info: Object,
		},
		computed: {
			finishedCheck: function() {
				return this.info.enterList.length !== 0
			}
		},
		methods: {
			to_sub_sub_page: function() {
				uni.navigateTo({
				    url: 'sub_sub_page?info=' + JSON.stringify(this.info)
				});
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style>
	.finished {
		border-color: #39B54A;
	}
	.unfinished {
		border-color: red;
	}
</style>
